//
//  GYKey.h
//  LockManagement
//
//  Created by apple on 2018/7/25.
//  Copyright © 2018年 yunjiazhineng. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface GYKey : NSObject<NSCoding>

/** 钥匙编号 */
@property (nonatomic, assign) int keyID;

/** 钥匙名称 */
@property (nonatomic, strong) NSString *keyName;

/** 钥匙硬件码 */
@property (nonatomic, strong) NSString *keyMac;

/** 钥匙状态（1：启用；0：停用；） */
@property (nonatomic, assign) int keyState;

/**
 网络加载钥匙数据

 @param current <#current description#>
 @param pageSize <#pageSize description#>
 @param success <#success description#>
 @param failed <#failed description#>
 */
+ (void)getKeyListsCurrent:(NSString *)current pageSize:(NSString *)pageSize success:(void (^)(NSArray *keys))success error:(void(^) (NSError *error))failed;

/**
 得到缓存的钥匙列表数据

 @return <#return value description#>
 */
+ (NSArray *)getCachesKeys;
@end
